package com.ykh.mybatis.mapper;

import com.ykh.mybatis.pojo.Emp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-08-18
 * Time: 8:06
 */
public interface DynamicMapper {
    /**
     * 动态sql : 多条件查询
     */
    public List<Emp> getEmpNByCondition( Emp emp);

    /**
     * 批量删除数据
     */
    public int deleteMoreEmp(@Param("eids") Integer[] eids);
    /**
     * 批量添加
     */
    public int insertMoreEmp( @Param("emps")  List<Emp> emps);
}
